//
//  SelectVideoDeviceModel.h
//  Rail
//
//  Created by hychen on 2018/3/25.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "BaseModel.h"
@class SelectVideoDeviceModel;
typedef NS_ENUM(NSInteger,VideoDeviceIPAddressType){
    VideoDeviceIPAddressTypeOut = 0,   //外网
    VideoDeviceIPAddressTypeIn,         //内网
};

@interface VideoIpTypeModel : NSObject
@property (nonatomic, copy) NSString *ip;
@property (nonatomic, copy) NSString *port;
@property (nonatomic, copy) NSString *user;
@property (nonatomic, copy) NSString *pwd;
@property (nonatomic, copy) NSString *showName;
@property (nonatomic, assign) BOOL isSelect;
@property (nonatomic, assign) VideoDeviceIPAddressType type;
@end

@interface SelectVideoDeviceModel : BaseModel
@property (nonatomic, copy) NSString *deviceid;
@property (nonatomic, copy) NSString *device_name;
@property (nonatomic, assign) DeviceStatus status;
@property (nonatomic, copy) NSString *logo_url;
@property (nonatomic, copy) NSString *operatorUser;
@property (nonatomic, copy) NSString *op_time;
@property (nonatomic, copy) NSString *op_name;

@property (nonatomic, copy) NSString *areaid;
@property (nonatomic, copy) NSString *area_name;
@property (nonatomic, copy) NSString *lineid;
@property (nonatomic, copy) NSString *line_name;
@property (nonatomic, copy) NSString *stationid;
@property (nonatomic, copy) NSString *station_name;
//内网ip
@property (nonatomic, copy) NSString *in_ipaddress;
//外网ip
@property (nonatomic, copy) NSString *out_ipaddress;

//认证账户
@property (nonatomic, copy) NSString *auth_user;
//认证密码
@property (nonatomic, copy) NSString *auth_pwd;
//映射端口
@property (nonatomic, copy) NSString *map_port;
//端口
@property (nonatomic, copy) NSString *port;
//通道编号
@property (nonatomic, copy) NSString *chid;
//通道数量
@property (nonatomic, copy) NSString *ch_count;
//通道名称
@property (nonatomic, copy) NSString *ch_name;
//收藏
@property (nonatomic, copy) NSString *favid;
//
@property (nonatomic, copy) NSString *seqid;
//码流 0主码流 1次码流
@property (nonatomic, assign) int streamType;
//2.4.2历史观看记录
//最后抓拍时间
@property (nonatomic, copy) NSString *snapshot_time;
//最后抓拍照片
@property (nonatomic, copy) NSString *snapshot_url;
//历史记录时间
@property (nonatomic, copy) NSString *watch_time;

#pragma mark 额外属性
@property (nonatomic, strong) VideoIpTypeModel *inTypeModel;
@property (nonatomic, strong) VideoIpTypeModel *outTypeModel;
@property (nonatomic, assign) VideoDeviceIPAddressType type;
@property (nonatomic, assign) int userId;
@property (nonatomic, assign) int realPlayId;
@property (nonatomic, assign) int startChan;
@property (nonatomic, assign) int chanNum;
- (void)setupTypeModel;

- (instancetype)initWithHomeVideoModel:(HomeVideoHistoryModel *)model;
@end
